<%inherit file="/index.mako" />
<%def name="title()">Programmation</%def>
<%
	def print_programmation(programmation):
		spec="""
			<div id="spec_list_pag" align="center">
				<p class="spectacles_title"><a href="/programmation/view/%s">%s</a></p>
				<p class="spectacles_content">%s</p>
			</div>
			
		""" % (programmation.id, programmation.title, programmation.content)
		return spec
		
	def print_programmation_list(programmations):
		programmation_list = '<p style="color: white;">Liste des Programmations</p>'
		for programmation in programmations:
			programmation_list = programmation_list+ """
											<p>
												<span id="hi_%s">%s</span>
											</p>
											 """ % (programmation.id, programmation.title)	
		
		return "<div id='spec_list'>%s</div>" % programmation_list
%>	
<div>
	
		${print_programmation_list(c.programmations) | n}
	
	<div style="float: left; width: 680px" align="left">
		%for programmation in c.programmations:
			${print_programmation(programmation) | n}
		%endfor
	</div>
	<div style="clear: both;"></div>
</div>
